<?php

    echo $this->Form->create('User',array('controller' => 'users','action' => 'create'));
    
    echo $this->Form->input('username',array(
        'type' => 'text',
        'label' => __('Email',true)
    ));
    
    echo $this->Form->input('full_name',array(
        'type' => 'text',
        'label' => __('Full Name',true)
    ));
    
    echo $this->Form->input('address',array(
        'type' => 'text',
        'label' =>  __('Address',true)
    ));
    
    echo $this->Form->input('phone',array(
        'type' => 'text',
        'label' =>  __('Phone',true)
    ));
    
    //echo $this->Form->input('picture',array('type' => '','label' =>  __('Picture',true)));
    
    echo $this->Form->textarea('responsabilities',array(
        'type' => 'textarea',
        'label' => __('Responsabilities',true),
        'rows' => 5,
        'cols' => 5
    ));
    
    echo $this->Form->input('role_id',array(
        'type' => 'select',
        'options' => $availableRoles,
        'label' => array('text' => 'Role','class' => ''),
        'empty' => __('(choose one)',true)
    ));
    
    echo $this->Form->end('Save');
    echo $this->Form->end('Cancel');
?>